package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.factory.RemotePcmFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "renotePcmService",value = ServiceNameConstants.PCM_SERVICE,
        fallbackFactory = RemotePcmFallbackFactory.class)
public interface RenotePcmService {
    @GetMapping("/get/{bt}")
    public String scbm(@PathVariable("bt")String bt, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
